package tryCatchTest.orderTest;

/**
 * 检查try/catch/finally的order
 * @author lcx
 *
 */
public class FianllyReturnTest {

	public static String order1(int a)
	{
		try
		{
			System.out.println("进入try块。。。");
			return "在try块中退出";
		}

		finally
		{
			System.out.println("进入finally块");
			if(a<0)
				return "在finally块中退出";
		}
	}

	public static void main(String[] args) {
		System.out.println(order1(-1));
		System.out.println("******************");
		System.out.println(order1(1));
	}
}
